package com.qyer.search.storm.util;

/**
 * Created by tangzheng on 16/7/15.
 */
public class ZTag2 {
  private int tid;
  private String tag_name;
  private int channel;

  public ZTag2() {
  }

  public ZTag2(int tid, String tag_name, int channel) {
    this.tid = tid;
    this.tag_name = tag_name;
    this.channel = channel;
  }

  public int getChannel() {
    return channel;
  }

  public void setChannel(int channel) {
    this.channel = channel;
  }

  public String getTag_name() {
    return tag_name;
  }

  public void setTag_name(String tag_name) {
    this.tag_name = tag_name;
  }

  public int getTid() {
    return tid;
  }

  public void setTid(int tid) {
    this.tid = tid;
  }

  @Override public boolean equals(Object o) {
    if (this == o)
      return true;
    if (o == null || getClass() != o.getClass())
      return false;

    ZTag2 zTag2 = (ZTag2) o;

    if (tid != zTag2.tid)
      return false;
    if (channel != zTag2.channel)
      return false;
    return tag_name.equals(zTag2.tag_name);

  }

  @Override public int hashCode() {
    int result = tid;
    result = 31 * result + tag_name.hashCode();
    result = 31 * result + channel;
    return result;
  }
}
